#include<iostream>
#include<cstring>
using namespace std;
class CAccount
{
    string account,name;
    double balance;
    double Putin,Putout;
    public:
        CAccount (string _acc,string _na,double _ba,double _pui,double _puo):account(_acc),name(_na),balance(_ba),Putin(_pui),Putout(_puo){ }
        void outBalance()
        {
            cout<<name<<"'s balance is "<<balance<<endl;
        }
        void save()
        {
            cout<<"saving ok!"<<endl;
            balance=balance+Putin;
            outBalance();
        }
        void Out()
        {
            if(balance<Putout)
            {
                cout<<"sorry! over limit!"<<endl;
                outBalance();
            }
            else
            {
                balance=balance-Putout;
                cout<<"withdraw ok!"<<endl;
                outBalance();
            }
        }
};
int main()
{
    string _acc, _na;
    double _ba, _pui, _puo;
    for(int i=0;i<=1;i++)
    {
        cin>>_acc>>_na>>_ba;
        cin>>_pui>>_puo;
        CAccount s1(_acc,_na,_ba,_pui,_puo);
        s1.outBalance();
        s1.save();
        s1.Out();
    }
}